package com.etd.base.domain.impl;

import javax.persistence.Column;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;


/**
 * 
 * <p>Title: BaseSubDomain</p>
 * <p>Description: 关联业务子表实体类父类</p>
 * <p>Company: tongking</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2016年7月21日 下午11:56:34
 */
@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler"})
public class BaseSubDomain extends BaseDomain {
	
	
	
	/*
	 * 关联主表记录编码
	 */
	@Column
	protected Long mainId;

	/**
	 * 获取关联主表记录编码
	 * @return
	 */
	public Long getMainId() {
		return mainId;
	}

	/**
	 * 设置关联主表记录编码
	 * @param mainId
	 */
	public void setMainId(Long mainId) {
		this.mainId = mainId;
	}

}
